import $http from "../http.js"
// 车品牌的请求
export const getCarBrand = () => $http("/user/car-brand/select_all_brand",{method:"get"})
// 车系的请求
export const getCarList=(params)=>$http("/user/carseries/select_by_brand_id?carbrandId="+params,{method:"get"})
// 车型的请求
export const getCarSeries=(params)=>$http("/user/car-information/select_by_carseriesId?carseriesId="+params,{method:"get"})
//新增我的爱车
export const addMyLoveCar=(params)=>$http("/user/mycar/add_mycar",{method:"post",data:{...params}})
//获取我的所有爱车
export const getMyLoveCar=()=>$http("/user/mycar/select_mycar",{method:"get"})
//删除我的爱车
export const delMyLoveCarOne=(params)=>$http("/user/mycar/delete_mycar",{method:"delete",data:{...params}})